<?php
    if(!empty($children)){
?>
<select id="children" name="data[Company][children]">
    <?php
        foreach ($children as $key => $val){
            ?>
            <option value="<?php echo $key ?>"><?php echo $val ?></option>
            <?php
        }
    ?>
</select>
<?php 
}
?>